package cn.rongdao.jrkabao.model.deposit;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.deposit.IncomeAndExpenditureBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/7/31
 */

public class InComeModel extends BaseKaMaoModel {

    public static InComeModel getInstance() {
        return getPresent(InComeModel.class);
    }

    public void execute(Observer<List<IncomeAndExpenditureBean>> observer) {
        Observable<List<IncomeAndExpenditureBean>> observable = mServletApi.getIncomeInfo(mParams).map(new HttpFunction<List<IncomeAndExpenditureBean>>());
        toSubscribe(observable, observer);
    }
}
